﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Jaqen.Lifenear.Entity
{
    public class UserEntityConfiguation:EntityTypeConfiguration<User>
    {
        public UserEntityConfiguation() {
            this.ToTable("tb_User");

            this.Property(u => u.UserName).IsRequired().HasMaxLength(20);
            this.Property(u => u.UserPwd).IsRequired().HasMaxLength(20);
        }
    }
}
